<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0,user-scalable=0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="css/index.css">
    <link rel="icon" href="/images/favicon.ico" />
    <title>SolarUnit</title>
    <link rel="stylesheet" type="text/css" href="css/register.css"/>
    <style type="text/css">
        /* 共用样式，可根据实际需要进行调整 */
        body{
            margin:0;
        }
        /* 设置容器的最大宽度，居中显示 */
        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        /* 图片样式，设置最大宽度为100%以确保响应式 */
        img {
            height: 556px;
            width: 605px;
        }

        /* PC端样式 */
        .pc-container {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .des{
            color: #817f7f;
            max-width: 380px;
            margin: 0 auto;
            font-size: 13px;
        }
        /* 移动端样式 */
        .mobile-container {
            display: none; /* 默认在移动端隐藏 */
        }

        .top-section,
        .bottom-section {
        width: 100%;
        }

        /* 使用媒体查询确保只在移动端显示 */
        @media only screen and (max-width: 767px) {
            .pc-container {
                display: none; /* 在移动端隐藏PC相关的内容 */
            }

            .mobile-container {
                flex-direction: column;
                display: flex; /* 在移动端显示移动端相关的内容 */
            }
            img {
                max-width: 100%;
                height: auto;
            }
            #loginfrom{
                width: 100%;
            }
        }
    </style>
</head>
<body>
    <!-- 在PC端 -->
    <div class="pc-container">
        <div class="left-column">
            <!-- 左边是图的部分 -->
            <img src="images/login_back.png" alt="">
        </div>
        <div class="right-column">
            <!-- 右边是form的部分 -->
            <form id="loginfrom" action="/">
                <h2 class="title">Solar Unit</h2>
                <h3 class="logoff">注销</h3>
                <div id='registerForm'>
                <div class="div_form clear">
                    <div class="input_div input_div1">
                    <input class="email" name="email" type="text" placeholder="注册邮箱" />
                    </div>
                </div>
                <div class="div_form clear">
                    <div class="input_div input_div2">
                    <input class="identifyingCode" type="text" placeholder="输入验证码">
                    <button class="sendCodeButton" type="button" onclick="sendVerificationCode(0)">发送验证码</button>
                    </div>
                </div>
                <div class="div_form clear">
                    <input id="btn" class="btn" type="button" value="注销" onclick="logOff(0)"/>
                </div>
                </div>
                <div class="des">
                    注销步骤：</br>
                    1.输入邮箱</br>
                    2.发送验证码并填写</br>
                    3.点击注销</br>
                    注意：此操作会删除您的账号及其所有数据</br>
                </div>
            </form>
        </div>
    </div>
  
    <!-- 在移动端 -->
    <div class="mobile-container">
        <div class="top-section">
            <!-- 上面是图的部分 -->
            <img src="images/login_back.png" alt="">
        </div>
        <div class="bottom-section">
            <!-- 下面是form的部分 -->
            <form id="loginfrom" action="/">
                <h2 class="title">Solar Unit</h2>
                <h3 class="logoff">注销</h3>
                <div id='registerForm'>
                <div class="div_form clear">
                    <div class="input_div input_div1">
                    <input class="email" type="text" placeholder="注册邮箱" />
                    </div>
                </div>
                <div class="div_form clear">
                    <div class="input_div input_div2">
                    <input class="identifyingCode" type="text" placeholder="输入验证码">
                    <button class="sendCodeButton" type="button" onclick="sendVerificationCode(1)">发送验证码</button>
                    </div>
                </div>
                <div class="div_form clear">
                    <input id="btn" class="btn" type="button" value="注销" onclick="logOff(1)"/>
                </div>
                </div>
                <div class="des">
                    注销步骤：</br>
                    1.输入邮箱</br>
                    2.发送验证码并填写</br>
                    3.点击注销</br>
                    注意：此操作会删除您的账号及其所有数据</br>
                </div>
            </form>
        </div>
    </div>
    <script src="js/jquery-1.12.1.js"></script>
    <script src="js/index.js"></script>
</body>
</html>